﻿using System.Collections.Generic;
using System.ComponentModel;
using LiveTiss.Classes;

namespace LiveTiss.Schemas
{
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.ans.gov.br/padroes/tiss/schemas")]
    public partial class ct_guiaSP_SADT
    {
        #region Public Properties - Custom

        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public System.DateTime? _dataHoraAtendimento
        {
            get
            {
                if (dataHoraAtendimentoFieldSpecified && dataHoraAtendimentoField > Util.EmptyDate)
                    return this.dataHoraAtendimentoField;
                else
                    return null;
            }
            set
            {
                if (value.HasValue)
                {
                    dataHoraAtendimentoFieldSpecified = true;
                    if ((object.ReferenceEquals(this.dataHoraAtendimentoField, value.Value) != true))
                    {
                        this.dataHoraAtendimentoField = value.Value;
                        this.OnPropertyChanged("dataHoraAtendimento");
                    }
                }
                else
                {
                    dataHoraAtendimentoFieldSpecified = false;
                    if ((object.ReferenceEquals(this.dataHoraAtendimentoField, Util.EmptyDate) != true))
                    {
                        this.dataHoraAtendimentoField = Util.EmptyDate;
                        this.OnPropertyChanged("dataHoraAtendimento");
                    }
                }
            }
        }

        // st_eletivaEmergencia
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public List<KeyValuePair<string, string>> caraterAtendimentoItems
        {
            get
            {
                return XML_enum.EletivaEmergencia;
            }
        }

        // st_tipoSaidaGuiaSADT
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public List<KeyValuePair<string, string>> tipoSaidaItems
        {
            get
            {
                return XML_enum.TipoSaidaGuiaSADT;
            }
        }

        // st_tipoAtendimento
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public List<KeyValuePair<string, string>> tipoAtendimentoItems
        {
            get
            {
                return XML_enum.TipoAtendimento;
            }
        }

        #endregion
    }
}
